package visualizer.drawable;

import java.util.LinkedList;

import processing.core.PGraphics;
import processing.core.PVector;

public class DrawableCollection extends LinkedList<Drawable> implements Drawable {
	private boolean enabled = true;

	public void draw(PGraphics g) {
		if (!enabled) {
			return;
		}
		
		for (Drawable d : this) {
			d.draw(g);
		}
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean status) {
		this.enabled = status;
	}
}
